import React from 'react';

import ReactDOM from 'react-dom';

import * as serviceWorker from '../serviceWorker';

import App from './App';
import { LocaleProvider  } from 'antd';
// 由于 antd 组件的默认文案是英文，所以需要修改为中文
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import moment from 'moment';
import 'moment/locale/zh-cn';

moment.locale('zh-cn');

ReactDOM.render( <LocaleProvider  locale={zh_CN}><App /></LocaleProvider>, document.getElementById('root'));

serviceWorker.register();

let env = process.env.NODE_ENV
if(env != 'development'){
    console.log = function(){}
}

console.log(env,'env')